import React from 'react'
import { useNavigate } from 'react-router-dom'

export default function Logoins() {


  const navigate = useNavigate()


  return (
    <div>
      <button onClick={() => {
        localStorage.setItem('login', '123123123123')
        navigate('/mys')
      }}>登录</button>


      <button onClick={() => {
        localStorage.removeItem('login')
        navigate('/mys')
      }}>退出登录</button>
    </div>
  )
}
